package cn.stylefeng.guns.modular.gui.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 优惠券记录
 * </p>
 *
 * @author Dong
 * @since 2023-06-13
 */
@TableName("p_myquan")
public class Myquan implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("uid")
    private Long uid;

    /**
     * 券ID
     */
    @TableField("qid")
    private Long qid;

    /**
     * 领取时间
     */
    @TableField("lqtime")
    private Date lqtime;

    /**
     * 有效期
     */
    @TableField("yxq")
    private Integer yxq;

    /**
     * 状态 0已领取 1已使用 2已过期
     */
    @TableField("state")
    private Integer state;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getQid() {
        return qid;
    }

    public void setQid(Long qid) {
        this.qid = qid;
    }

    public Date getLqtime() {
        return lqtime;
    }

    public void setLqtime(Date lqtime) {
        this.lqtime = lqtime;
    }

    public Integer getYxq() {
        return yxq;
    }

    public void setYxq(Integer yxq) {
        this.yxq = yxq;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Myquan{" +
        "id=" + id +
        ", uid=" + uid +
        ", qid=" + qid +
        ", lqtime=" + lqtime +
        ", yxq=" + yxq +
        ", state=" + state +
        "}";
    }
}
